const transformRemoveConsolePlugin = []

if (process.env.NODE_ENV !== 'development') {
  transformRemoveConsolePlugin.push('transform-remove-console')
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  'env': {
    'development': {
      'plugins': ['dynamic-import-node']
    }
  },
  plugins: [...transformRemoveConsolePlugin]
}
